x86: prefer is_..._domain() over is_..._vcpu()
authorJan Beulich <jbeulich@suse.com>
Fri, 12 Jun 2015 10:03:13 +0000 (12:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 12 Jun 2015 10:03:13 +0000 (12:03 +0200)
commit67a35cd752741d855b177b4d7b11b5ec80707e00
treec13b304583e584e1b23355e4cb6c594154073005
parentee78176f98f60ad6de32faabba46d863b75ceb28
x86: prefer is_..._domain() over is_..._vcpu()

... when the domain pointer is already available or such operations
occur frequently in a function.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain.c
xen/arch/x86/domctl.c
xen/arch/x86/traps.c